package com.pmsystem.dao;

import com.pmsystem.pojo.Community;
import com.pmsystem.pojo.CommunityExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CommunityMapper {
    long countByExample(CommunityExample example);

    int deleteByExample(CommunityExample example);

    int deleteByPrimaryKey(Integer communityId);

    int insert(Community record);

    int insertSelective(Community record);

    List<Community> selectByExample(CommunityExample example);

    Community selectByPrimaryKey(Integer communityId);

    int updateByExampleSelective(@Param("record") Community record, @Param("example") CommunityExample example);

    int updateByExample(@Param("record") Community record, @Param("example") CommunityExample example);

    int updateByPrimaryKeySelective(Community record);

    int updateByPrimaryKey(Community record);
    
    /**
     * 
     * <p>Title: selectByExample</p>  
     * <p>Description:分页查询小区设施的记录 </p>  
     * @author 树昌
     * @param example
     * @return
     */
    List<Community> selectByExampleWithPage(CommunityExample example);
}